package edu.kpi.pzks2.simulator.results;

import java.util.List;


/**
 * Set of time lines of all processors and channels.
 *
 * @author Pustovit Michael, pustovitm@gmail.com
 */
public class SimulationResult {
    private List<TimeLine> procHistories;
    private List<TimeLine> chanHistories;
    
    public SimulationResult(List<TimeLine> procHistories,
            List<TimeLine> chanHistories) {
        super();
        this.procHistories = procHistories;
        this.chanHistories = chanHistories;
    }

    public List<TimeLine> getProcHistories() {
        return procHistories;
    }

    public List<TimeLine> getChanHistories() {
        return chanHistories;
    }
    
    @Override
    public String toString() {
        String str = "Processors\n";
        
        for (TimeLine t : procHistories) {
            str += t + "\n";
        }
        
        str += "Channels\n";
        for (TimeLine t : chanHistories) {
            str += t + "\n";
        }
        
        return str;
    }
}
